package com.neusoft.sm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.neusoft.sm.po.Emp;

@Mapper
public interface EmpMapper {

	@Select("select * from emp")
	public List<Emp> getListEmp();
	
	@Select("select * from emp where empno=#{empno}")
	public Emp getEmpById(int empno);
	
	@Update("update emp set sal=sal+500 where empno = #{empno}")
	public int addrenyingying(int empno);
	
	@Update("update emp set sal=sal-500 where empno = #{empno}")
	public int minusrenwoxing(int empno);
}
